﻿<?xml version="1.0" encoding="utf-8" ?>
<Recipe xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
Name="STSADMCommandRecipe"
xmlns="http://schemas.microsoft.com/pag/gax-core"
Bound="false">
 <Caption>Add STSADM Command</Caption>
 
  <HostData>
    <Icon File="spalm.ico" />
    <CommandBar Menu="SPALMItem"/>
  </HostData>
 
    <Arguments>
      <Argument Name="SolutionDefaultNameSpace">
        <ValueProvider Type="SteriaMummert.SharePoint.SoftwareFactoryLite.ValueProviders.DefaultNamespaceProvider, SteriaMummert.SharePoint.SoftwareFactoryLite" />
      </Argument>
      <Argument Name="SolutionAssemblyName">
        <ValueProvider Type="SteriaMummert.SharePoint.SoftwareFactoryLite.ValueProviders.AssemblyProvider, SteriaMummert.SharePoint.SoftwareFactoryLite" />
      </Argument>
      <Argument Name="TargetFileName">
        <ValueProvider Type="Microsoft.Practices.RecipeFramework.Library.ValueProviders.ExpressionEvaluatorValueProvider,Microsoft.Practices.RecipeFramework.Library" Expression="$(STSADMCommandClass).cs" />
      </Argument>
      
      <Argument Name="CurrentProject" Type="EnvDTE.Project, EnvDTE, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
        <ValueProvider Type="Microsoft.Practices.RecipeFramework.Library.ValueProviders.FirstSelectedProject, Microsoft.Practices.RecipeFramework.Library" />
      </Argument>

      <Argument Name="STSADMCommandName" Required="true" >
        <ValueProvider Type="Microsoft.Practices.RecipeFramework.Library.ValueProviders.ExpressionEvaluatorValueProvider,Microsoft.Practices.RecipeFramework.Library" Expression="customcommmand" />
      </Argument>
      <Argument Name="STSADMCommandDescription" Required="false" >
        <ValueProvider Type="Microsoft.Practices.RecipeFramework.Library.ValueProviders.ExpressionEvaluatorValueProvider,Microsoft.Practices.RecipeFramework.Library" Expression="Command Description" />
      </Argument>
      <Argument Name="STSADMCommandClass" Required="true" >
        <ValueProvider Type="Microsoft.Practices.RecipeFramework.Library.ValueProviders.ExpressionEvaluatorValueProvider,Microsoft.Practices.RecipeFramework.Library" Expression="ClassName" />
      </Argument>
      <Argument Name="STSADMExtensionParameterCollection" Required="false" Type="SMC.SPALM.Types.STSADMExtensionParameter[], SteriaMummert.SharePoint.SoftwareFactoryLite" >
        <ValueProvider ObjectType="SMC.SPALM.Types.STSADMExtensionParameter" Type="SteriaMummert.SharePoint.SoftwareFactoryLite.ValueProviders.DefaultCollectionProvider, SteriaMummert.SharePoint.SoftwareFactoryLite"  />
      </Argument>
      <Argument Name="STSADMExtensionHelpMessage" Required="false">
        <ValueProvider Type="Microsoft.Practices.RecipeFramework.Library.ValueProviders.ExpressionEvaluatorValueProvider,Microsoft.Practices.RecipeFramework.Library" Expression="Help Message" />
      </Argument>

    </Arguments>
    <GatheringServiceData>
      <Wizard xmlns="http://schemas.microsoft.com/pag/gax-wizards" SchemaVersion="1.0">
        <Pages>
          <Page Height="300">            
            <Title>STSADM Command</Title>
            <Fields>
              <Field ValueName="STSADMCommandName" Label="Name" />
              <Field ValueName="STSADMCommandDescription" Label="Description" />
              <Field ValueName="STSADMCommandClass" Label="Class Name" />
              <Field ValueName="STSADMExtensionParameterCollection" Label="Parameter" >
                <Editor Type="SteriaMummert.SharePoint.SoftwareFactoryLite.Editors.CustomArrayEditor, SteriaMummert.SharePoint.SoftwareFactoryLite" />
              </Field>
              <Field ValueName="STSADMExtensionHelpMessage" Label="Parameter" />
            </Fields>
          </Page>
        </Pages>
      </Wizard>
    </GatheringServiceData>
  <Actions>
    <Action Name="GenerateClass" Template="Text\STSADMExtension\STSADMExtension.cs.t4" Type="Microsoft.Practices.RecipeFramework.VisualStudio.Library.Templates.TextTemplateAction, Microsoft.Practices.RecipeFramework.VisualStudio.Library" InputValue="Configured Static Value">
      <Input Name="STSADMExtensionNamespace" RecipeArgument="SolutionDefaultNameSpace" />
      <Input Name="STSADMCommandDescription" RecipeArgument="STSADMCommandDescription" />
      <Input Name="STSADMCommandClass" RecipeArgument="STSADMCommandClass" />
      <Input Name="STSADMExtensionParameterCollection" RecipeArgument="STSADMExtensionParameterCollection" />
      <Input Name="STSADMExtensionHelpMessage" RecipeArgument="STSADMExtensionHelpMessage" />
      <Output Name="Content" />
    </Action>
    <Action Name="AddClass" Type="Microsoft.Practices.RecipeFramework.Library.Actions.AddItemFromStringAction, Microsoft.Practices.RecipeFramework.Library"	Open="true">
      <Input Name="Content" ActionOutput="GenerateClass.Content" />
      <Input Name="TargetFileName" RecipeArgument="TargetFileName" />
      <Input Name="Project" RecipeArgument="CurrentProject" />
    </Action>
  </Actions>
</Recipe>